package cn.hl.hm.entity;

import java.util.Date;
import java.util.List;

public class TCouponEntity implements Comparable<TCouponEntity>  {
    private Integer id;

    private Integer definitionId;

    private Date useTime; 

    private String name; // 优惠券类型

    private String couponCode;  // 优惠券编号

    private Double cash;

    private Integer userId;

    private Integer channelId;

    private Integer truckTypeId;

    private Integer typeId;

    private String remark;

    private Integer discountTypeId;

    private Integer userTypeId;

    private Integer userBinding;

    private Integer maxCash;

    private Double discoutCash;

    private Double discountRate;

    private Integer status;

    private Date startTime;

    private Date endTime;

    private Date createTime;
    private String tCouponCount;
    private List<TCouponEntity>couponList;

    private String userName;
    private String userAccount;
    private String convertStatus;
    private String orderId;
    private String useOrderTime;
    private String copName;
    private String convertTime;
    private String distributeTime;
    private String orderIdForSearch;
    
    
    public String getOrderIdForSearch() {
		return orderIdForSearch;
	}

	public void setOrderIdForSearch(String orderIdForSearch) {
		this.orderIdForSearch = orderIdForSearch;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserAccount() {
		return userAccount;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}

	 

	public String getConvertStatus() {
		return convertStatus;
	}

	public void setConvertStatus(String convertStatus) {
		this.convertStatus = convertStatus;
	}

	public String getConvertTime() {
		return convertTime;
	}

	public void setConvertTime(String convertTime) {
		this.convertTime = convertTime;
	}

	public String getDistributeTime() {
		return distributeTime;
	}

	public void setDistributeTime(String distributeTime) {
		this.distributeTime = distributeTime;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getUseOrderTime() {
		return useOrderTime;
	}

	public void setUseOrderTime(String useOrderTime) {
		this.useOrderTime = useOrderTime;
	}

	public String getCopName() {
		return copName;
	}

	public void setCopName(String copName) {
		this.copName = copName;
	}

	public String gettCouponCount() {
		return tCouponCount;
	}

	public List<TCouponEntity> getCouponList() {
		return couponList;
	}

	public void setCouponList(List<TCouponEntity> couponList) {
		this.couponList = couponList;
	}

	public void settCouponCount(String tCouponCount) {
		this.tCouponCount = tCouponCount;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDefinitionId() {
        return definitionId;
    }

    public void setDefinitionId(Integer definitionId) {
        this.definitionId = definitionId;
    }

    public Date getUseTime() {
        return useTime;
    }

    public void setUseTime(Date useTime) {
        this.useTime = useTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getCouponCode() {
        return couponCode;
    }

    public void setCouponCode(String couponCode) {
        this.couponCode = couponCode == null ? null : couponCode.trim();
    }

    public Double getCash() {
        return cash;
    }

    public void setCash(Double cash) {
        this.cash = cash;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getChannelId() {
        return channelId;
    }

    public void setChannelId(Integer channelId) {
        this.channelId = channelId;
    }

    public Integer getTruckTypeId() {
        return truckTypeId;
    }

    public void setTruckTypeId(Integer truckTypeId) {
        this.truckTypeId = truckTypeId;
    }


    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Integer getDiscountTypeId() {
        return discountTypeId;
    }

    public void setDiscountTypeId(Integer discountTypeId) {
        this.discountTypeId = discountTypeId;
    }

    public Integer getUserBinding() {
        return userBinding;
    }

    public void setUserBinding(Integer userBinding) {
        this.userBinding = userBinding;
    }

    public Integer getMaxCash() {
        return maxCash;
    }

    public void setMaxCash(Integer maxCash) {
        this.maxCash = maxCash;
    }

   

  

    public Double getDiscoutCash() {
		return discoutCash;
	}

	public void setDiscoutCash(Double discoutCash) {
		this.discoutCash = discoutCash;
	}

	public Double getDiscountRate() {
		return discountRate;
	}

	public void setDiscountRate(Double discountRate) {
		this.discountRate = discountRate;
	}

	public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

	public Integer getTypeId() {
		return typeId;
	}

	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}

	public Integer getUserTypeId() {
		return userTypeId;
	}

	public void setUserTypeId(Integer userTypeId) {
		this.userTypeId = userTypeId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	public int compareTo(TCouponEntity o) {
		// TODO Auto-generated method stub
		return o.getCash().compareTo(this.getCash());
	}
    
}